package com.tianql.feign;

import com.tianql.constant.ApiNameConstant;
import com.tianql.core.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(name= ApiNameConstant.MY_STORAGE,path = "/storage")
@Service
public interface StorageFeign {
    @RequestMapping("deduct")
    public ApiResult deduct(@RequestParam("commodityCode") String commodityCode, @RequestParam("count") int count);

    @RequestMapping("getCount")
    public ApiResult getCount(@RequestParam("commodityCode") String commodityCode);
}
